Function.prototype.myBind = function (context,...args) {
    let self = this;
    return function (...args1) {
        context.fn = self;
        let ans =  context.fn(...args.concat(args1));
        delete context.fn;
        return ans;
    }
}
function bar(name,age){
    console.log(this.val);
    console.log(name);
    console.log(age);
}
let obj = {
    val:'obj'
}
let fn = bar.bind(obj,"hh","xixi");
fn();

